<script>
	// import VConsole from 'vconsole';
	// const vConsole = new VConsole({ theme: 'light' });
	export default {
		onLaunch: function(option) {
			// #ifdef MP-ALIPAY
			console.log(option);
			if(option.query)	{
				if (option.query.a) {
					my.setStorageSync({
						key: 'a',
						data: option.query.a
					});
				}
				if (option.query.param) {
					my.setStorageSync({
						key: 'a',
						data: option.query.param
					});
				}	
				}
			
				my.setVisualEffectOnCapture({
					visualEffect: 'hidden',
					success: res => {
						console.log(res);
					},
					
					fail: error => {
						console.log(error);
					},
				});
			// #endif
	

		},
		onShow: function() {

			console.log('App Show');
		},
		onHide: function() {
			console.log('App Hide');
		}
	};
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	/* uview-plus */
	@import '@/uni_modules/uview-plus/index.scss';
	@import '@/static/common.css';
	@import '@/static/custom.scss';
	@import '@/static/free.css';
	/* #ifndef APP-NVUE */
	@import '@/static/customicons.css';

	// 设置整个项目的背景色
	page {
		background-color: #f5f5f5;
		height: 100%;
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}
</style>